package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.sql.Time;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2023-02-01
 */
@TableName("d_eat_time")
@Data
public class EatTime extends Model<EatTime> {

    private static final long serialVersionUID = 1L;

    /**
     * 组ID 0无设置 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 组名
     */
    private String title;

    /**
     * 午餐开始时间
     */
    @TableField("lunch_start_time")
    private Time lunchStartTime;

    /**
     * 午餐结束时间
     */
    @TableField("lunch_end_time")
    private Time lunchEndTime;

    /**
     * 晚餐开始时间
     */
    @TableField("dinner_start_time")
    private Time dinnerStartTime;

    /**
     * 晚餐结束时间
     */
    @TableField("dinner_end_time")
    private Time dinnerEndTime;

    /**
     * 就餐时间类型：0时间点 1时间段
     */
    private Integer type;

    /**
     * 是否启用：0否 1是
     */
    private Integer status;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DEatTime{" +
        "id=" + id +
        ", title=" + title +
        ", lunchStartTime=" + lunchStartTime +
        ", lunchEndTime=" + lunchEndTime +
        ", dinnerStartTime=" + dinnerStartTime +
        ", dinnerEndTime=" + dinnerEndTime +
        ", type=" + type +
        ", status=" + status +
        "}";
    }
}
